'use strict';

Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.xhr = undefined;

var _getRequestConfig = require('./getRequestConfig');

var _xhrSend = require('./xhrSend');

var xhr = exports.xhr = function xhr() {
    var config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

    return (0, _xhrSend.xhrSend)((0, _getRequestConfig.getRequestConfig)(config), new XMLHttpRequest());
};
exports.default = xhr;